﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 超市_GUID
{
    class Program
    {
        static void Main(string[] args)
        {
            string strGuid  = Guid.NewGuid().ToString();    // 00000000-0000-0000-0000-000000000000
            string strGuidN = Guid.NewGuid().ToString("N"); // 00000000000000000000000000000000
            string strGuidD = Guid.NewGuid().ToString("D"); // 00000000-0000-0000-0000-000000000000
            string strGuidB = Guid.NewGuid().ToString("B"); // {00000000-0000-0000-0000-000000000000}
            string strGuidP = Guid.NewGuid().ToString("P"); // (00000000-0000-0000-0000-000000000000)
            string strGuidX = Guid.NewGuid().ToString("X"); // {0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}

            //Guid.NewGuid().ToString()
            Console.WriteLine(strGuid);
            Console.WriteLine(strGuidN);
            Console.WriteLine(strGuidD);
            Console.WriteLine(strGuidB);
            Console.WriteLine(strGuidP);
            Console.WriteLine(strGuidX);
            Console.ReadKey();

        }
    }
}
